using Foundation;
using QuickLook;

public class QLPreviewItemFileSystem : QLPreviewItem
{
	readonly string _fileName, _filePath;

	public QLPreviewItemFileSystem(string fileName, string filePath)
	{
		_fileName = fileName;
		_filePath = filePath;
	}

	public override string PreviewItemTitle
	{
		get
		{
			return _fileName;
		}
	}
	public override NSUrl PreviewItemUrl
	{
		get
		{
			return NSUrl.FromFilename(_filePath);
		}
	}
}

public class QLPreviewItemBundle : QLPreviewItem
{
	readonly string _fileName, _filePath;
	public QLPreviewItemBundle(string fileName, string filePath)
	{
		_fileName = fileName;
		_filePath = filePath;
	}

	public override string PreviewItemTitle
	{
		get
		{
			return _fileName;
		}
	}
	public override NSUrl PreviewItemUrl
	{
		get
		{
			var documents = NSBundle.MainBundle.BundlePath;
			var lib = Path.Combine(documents, _filePath);
			var url = NSUrl.FromFilename(lib);
			return url;
		}
	}
}

